package com.liuweiheng.springcloud.feign;

import com.liuweiheng.base.entity.R;
import com.liuweiheng.cloudproviderpayment8002.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE", fallback = PaymentFallbackService.class)
public interface PaymentFeignService {
    /**
     * shiro登录
     */
    @PostMapping("/payment/test/login")
    R login(@RequestBody User user);
}
